const http = require('../utils/http')

const HTTP = new http.HTTP()

// 购买课程
export function buyCourse(courseId, volunteerId, callback) {
  let params = {
    courseId,
    volunteerId
  }
  // HTTP.request('/course/buyCourse', 'GET', params, res => {
  //   callback(res)
  // })
  HTTP.request('/course/buyCourse', 'POST', params, res => {
    callback(res)
  })
}